Post not yet marked as solved
Click to stop watching this thread.
You have stopped watching this post. Click to start watching again.
contentPostList.repliesup-voted.tooltip
I've updated the code as follows and it all works fine. Interestingly even though I haven't specified to mixWithOthers, it still does.
Please note that for anyone trying to find options to set on the session.activate options parameter, there aren't any! All you can use is []
if #available(watchOS 10.0, *) {
try session.setCategory(AVAudioSession.Category.playback,
mode: .default,
policy: .longFormAudio,
options: [])
session.activate(options:[]){ success, error in
if (error != nil) {
print ("Error in activating audio session")
} else {
if success {
print ("Audio session successfully activated")
} else {
print ("Audio session not activated")
}
}
}